#include <stdio.h>

#include <iostream>
#include <string>
#include <vector>
using namespace std;

int main() {
    int N;
    scanf("%d", &N);
    vector<int> t;
    for (int i = 0; i < N; ++i) {
        int tmp;
        scanf("%d", &tmp);
        t.push_back(tmp);
    }

    vector<int> res(t.begin(), t.end());
    for (size_t i = 0; i < t.size(); ++i)
        res.push_back(t[i]);

    const size_t cnt = res.size();
    for (size_t i = 0; i < cnt; ++i) {
        if (i < (cnt-1))
            printf("%d ", res[i]);
        else
            printf("%d\n", res[i]);
    }
    return 0;
}
